//
//  WinGen_Header.h
//  WinGenProject
//
//  Created by MacPro on 15/12/1.
//  Copyright © 2015年 Winthegen. All rights reserved.
//

#ifndef WinGen_Header_h
#define WinGen_Header_h

typedef NS_ENUM(NSInteger, HomeOperationType){
    kHomeOperationTypeLogin,
    kHomeOperationTypeLoginOut,
    kHomeOperationTypeHome,
    kHomeOperationTypePersonCenter,
    kHomeOperationTypeProblem,
};


#define kHomeViewControllerNotification @"kHomeViewControllerNotification" //首页处理事情的通知


#define HexRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define SYSTEM_VERSION_EQUAL_TO(v)                  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
#define SYSTEM_VERSION_GREATER_THAN(v)              ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN(v)                 ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v)     ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)

//常用颜色
#define DefaultColor_NavigationBar HexRGB(0xff8207)
#define DefaultColor_BlueButton HexRGB(0x2ea2d6)
#define DefaultColor_YellowButton HexRGB(0xfa9d19)
#define DefaultColor_BackgroundColor HexRGB(0xf5f5f5)

#define PCCB_5SW_Rate 1.171875
#define PCCB_5SH_Rate 1.174296

#define SCREEN_WIDTH  ([UIScreen mainScreen].bounds.size.width)

#define SCREEN_WIDTH_RATE ( ([UIScreen mainScreen].bounds.size.width)/375.0f)

#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

#define SCREEN_HEIGHT_RATE (([UIScreen mainScreen].bounds.size.height)/667.0f)

#define SYSTEM_FONT_RATE ( ([UIScreen mainScreen].bounds.size.width)== 414 ?([UIScreen mainScreen].bounds.size.width)/375.0f - 0.05:(([UIScreen mainScreen].bounds.size.width)== 375 ?1.0:0.928))


//字体
#define Default_Font_10 [UIFont systemFontOfSize:10]
#define Default_Font_11 [UIFont systemFontOfSize:11]
#define Default_Font_12 [UIFont systemFontOfSize:12]
#define Default_Font_13 [UIFont systemFontOfSize:13]
#define Default_Font_14 [UIFont systemFontOfSize:14]
#define Default_Font_15 [UIFont systemFontOfSize:15]
#define Default_Font_16 [UIFont systemFontOfSize:16]
#define Default_Font_17 [UIFont systemFontOfSize:17]
#define Default_Font_18 [UIFont systemFontOfSize:18]
#define Default_Font_19 [UIFont systemFontOfSize:19]
#define Default_Font_22 [UIFont systemFontOfSize:22]
#define Default_Font_25 [UIFont systemFontOfSize:25]

//加粗字体
#define Default_Bold_Font_11 [UIFont boldSystemFontOfSize:11*SYSTEM_FONT_RATE]
#define Default_Bold_Font_12 [UIFont boldSystemFontOfSize:12*SYSTEM_FONT_RATE]
#define Default_Bold_Font_13 [UIFont boldSystemFontOfSize:13*SYSTEM_FONT_RATE]
#define Default_Bold_Font_14 [UIFont boldSystemFontOfSize:14*SYSTEM_FONT_RATE]
#define Default_Bold_Font_15 [UIFont boldSystemFontOfSize:15*SYSTEM_FONT_RATE]
#define Default_Bold_Font_16 [UIFont boldSystemFontOfSize:16*SYSTEM_FONT_RATE]
#define Default_Bold_Font_17 [UIFont boldSystemFontOfSize:17*SYSTEM_FONT_RATE]
#define Default_Bold_Font_18 [UIFont boldSystemFontOfSize:18*SYSTEM_FONT_RATE]


#define HintWithNoMoreData @"没有更多数据了！"

// 是否输出日志
#define CGLOBAL_SHOW_LOG_FLAG  YES


#endif /* WinGen_Header_h */
